/* eslint-disable */
import ECharts from 'vue-echarts/components/ECharts.vue'
import testMap from './map.json'

// registering map data
ECharts.registerMap('testMap', testMap)

export default {
  backgroundColor: 'rgba(0, 0, 0, 0)',
  grid: {
    left: 0,
    right: 200,
    x2: 20,
    y2: 30
  },
  visualMap: [
    {
      show: false,
      type: 'continuous',
      min: 0,
      max: 100,
      inRange: {
        color: ['#313695', '#4575b4', '#74add1', '#abd9e9', '#e0f3f8', '#ffffbf', '#fee090', '#fdae61', '#f46d43', '#d73027', '#a50026'],
        colorAlpha: .5,
        opacity: 1
      }
    }
  ],
  series: [
    {
      type: 'map',
      map: 'testMap',
      aspectScale: '.95',
      zoom: '1.2',
      data: [
        {
          name: '茶水间',
          value: '10'
        },
        {
          name: '办公室',
          value: '20'
        },
        {
          name: '入口',
          value: '30'
        },
        {
          name: '研发中心',
          value: '40'
        },
        {
          name: '支持中心',
          value: '50'
        },
        {
          name: '会议室',
          value: '60'
        }
      ]
    }
  ]
}
